package Day15;

import java.util.*;

/**
 * @Author kalista
 * @Description
 * @Date 2020/11/23  14:22
 **/
public class 人 {

    int a = 10;

   StringBuffer stringBuffer;


   Vector<String> vector;

   Hashtable<String,String> stringStringHashtable;




    public void add(){


        List<String> sdf = new ArrayList<>();
        Map<String,Integer> map = new HashMap<>();

    }







}

class 爸爸 extends  Thread{


    @Override
    public void run() {
        System.out.println("我想抽烟");
        System.out.println("乖儿子给爸爸买烟去");

        孩子  h = new 孩子();
        h.start();
        try {
            h.join();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }


        System.out.println("谢谢儿子给老爸买烟。 真好抽");



    }
}

class  孩子 extends Thread{

    @Override
    public void run() {
        for (int i = 0; i < 10; i++) {
            System.out.println("儿子去买烟去了" + i);
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}

